<?php
/**
 * this class is an container for sql objects and decides by DB_TYPE which sql object
 * should be generated
 * 
 * @author		simon ungerboeck <ungerboeck_simon@hotmail.com>
 * @version		1.0
 */

class Sql_Object{
	/**
	 * returns an sql instance accordingly the db type
	 * @return			mixed		$sqlObj
	 */
	public static function getInstance(){
		$sqlObj = null;
		if (isMySql())
			$sqlObj = new MYSQL(DB_USER, DB_PASSWORD, DB_SERVER);
		
		if (isMsSql())
			$sqlObj = new MSSQL(DB_USER, DB_PASSWORD, DB_SERVER);
		return $sqlObj;
	}
} 


class SqlObject{
	
	public static function getInstance(){
		return Sql_Object::getInstance();
	}
}
?>